Builder

class Builder

Constructors

Builder
Link copied to clipboard
open fun Builder()

Functions

allowOverlap
Link copied to clipboard
open fun allowOverlap(allowOverlap: Boolean): ViewAnnotationOptions.Builder
If true, the annotation will be visible even if it collides with other previously drawn annotations.
anchor
Link copied to clipboard
open fun anchor(anchor: ViewAnnotationAnchor): ViewAnnotationOptions.Builder
Anchor describing where the view annotation will be located relatively to given geometry.
associatedFeatureId
Link copied to clipboard
open fun associatedFeatureId(associatedFeatureId: String): ViewAnnotationOptions.Builder
Optional style symbol id connected to given view annotation.
build
Link copied to clipboard
open fun build(): ViewAnnotationOptions
geometry
Link copied to clipboard
open fun geometry(geometry: Geometry): ViewAnnotationOptions.Builder
Geometry the view annotation is bound to.
height
Link copied to clipboard
open fun height(height: Integer): ViewAnnotationOptions.Builder
View annotation height in `platform pixels`.
offsetX
Link copied to clipboard
open fun offsetX(offsetX: Integer): ViewAnnotationOptions.Builder
Extra X offset in `platform pixels`.
offsetY
Link copied to clipboard
open fun offsetY(offsetY: Integer): ViewAnnotationOptions.Builder
Extra Y offset in `platform pixels`.
selected
Link copied to clipboard
open fun selected(selected: Boolean): ViewAnnotationOptions.Builder
Specifies if this view annotation is selected meaning it should be placed on top of others.
visible
Link copied to clipboard
open fun visible(visible: Boolean): ViewAnnotationOptions.Builder
Specifies if this view annotation is visible or not.
width
Link copied to clipboard
open fun width(width: Integer): ViewAnnotationOptions.Builder
View annotation width in `platform pixels`.